﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;

namespace TouchRC.Logic
{
    public class RemoteCommands
    {
        public enum ButtonCommands
        {
            Rec,
            Left,
            Up,
            Right,
            Down,
            Ok,
            Back,
            Info,
            Ch_Plus,
            Ch_Minus,
            Dvdmenu,
            Dvdaudio,
            Dvdsubtitle,
            Cc,
            Pause,
            Play,
            Stop,
            Skipback,
            Skipfwd,
            Rew,
            Fwd,
            Zoom,
            Num_0,
            Num_1,
            Num_2,
            Num_3,
            Num_4,
            Num_5,
            Num_6,
            Num_7,
            Num_8,
            Num_9
        }

        public enum GoToPlaces
        {
            ExtensibilityUrl,
            FMRadio,
            InternetRadio,
            LiveTV,
            ManageDisks,
            MovieLibrary,
            MorePrograms,
            MusicAlbums,
            MusicArtists,
            MusicSongs,
            MyMusic,
            MyPictures,
            MyTV,
            MyVideos,
            PhotoDetails,
            RecordedTV,
            RecorderStorageSettings,
            ScheduledTVRecordings,
            Slideshow,
            SlideshowSettings,
            Start,
            TVGuide,
            Visualizations,
            WebAddIn
        }

        public enum VolumeOptions
        {
            Up,
            Down,
            Mute,
            UnMute
        }

        public static string ResolveVolumeCommand(VolumeOptions command)
        {
            return "volume " + command.ToString();
        }

        public static string ResolveButtonCommand(ButtonCommands command)
        {
            return "button-" + command.ToString().ToLower().Replace("_", "-");
        }

        public static string ResolveGoToCommand(GoToPlaces command)
        {
            return "goto " + command.ToString();
        }

    }
}
